package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 article
 * 
 * @author ruoyi
 * @date 2024-08-26
 */
public class Article extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long articleId;

    /** 作者ID(登录id) */
    @Excel(name = "作者ID(登录id)")
    private Long userId;

    /** 文章标题 */
    @Excel(name = "文章标题")
    private String articleTitle;

    /** 文章内容 */
    @Excel(name = "文章内容")
    private String articleContent;

    /** 文章浏览次数 */
    @Excel(name = "文章浏览次数")
    private Long articleViews;

    /** 文章评论 */
    @Excel(name = "文章评论")
    private Long articleComment;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date articleDate;

    /** 点赞数量 */
    @Excel(name = "点赞数量")
    private Long articleLikes;

    /** 作者昵称 */
    @Excel(name = "作者昵称")
    private String articleAuthor;

    /** 图片路径 */
    @Excel(name = "图片路径")
    private String articlePicpath;

    public void setArticleId(Long articleId) 
    {
        this.articleId = articleId;
    }

    public Long getArticleId() 
    {
        return articleId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setArticleTitle(String articleTitle) 
    {
        this.articleTitle = articleTitle;
    }

    public String getArticleTitle() 
    {
        return articleTitle;
    }
    public void setArticleContent(String articleContent) 
    {
        this.articleContent = articleContent;
    }

    public String getArticleContent() 
    {
        return articleContent;
    }
    public void setArticleViews(Long articleViews) 
    {
        this.articleViews = articleViews;
    }

    public Long getArticleViews() 
    {
        return articleViews;
    }
    public void setArticleComment(Long articleComment) 
    {
        this.articleComment = articleComment;
    }

    public Long getArticleComment() 
    {
        return articleComment;
    }
    public void setArticleDate(Date articleDate) 
    {
        this.articleDate = articleDate;
    }

    public Date getArticleDate() 
    {
        return articleDate;
    }
    public void setArticleLikes(Long articleLikes) 
    {
        this.articleLikes = articleLikes;
    }

    public Long getArticleLikes() 
    {
        return articleLikes;
    }
    public void setArticleAuthor(String articleAuthor) 
    {
        this.articleAuthor = articleAuthor;
    }

    public String getArticleAuthor() 
    {
        return articleAuthor;
    }
    public void setArticlePicpath(String articlePicpath) 
    {
        this.articlePicpath = articlePicpath;
    }

    public String getArticlePicpath() 
    {
        return articlePicpath;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("articleId", getArticleId())
            .append("userId", getUserId())
            .append("articleTitle", getArticleTitle())
            .append("articleContent", getArticleContent())
            .append("articleViews", getArticleViews())
            .append("articleComment", getArticleComment())
            .append("articleDate", getArticleDate())
            .append("articleLikes", getArticleLikes())
            .append("articleAuthor", getArticleAuthor())
            .append("articlePicpath", getArticlePicpath())
            .toString();
    }
}
